package com.qqt.csr.message.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: yang hao
 * @Date: 2024/12/11 14:43
 * @Description: 消息通知返回对象
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "消息通知 返回对象")
public class MessageNotifyResponse implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "消息动作类型：0 无；1 只弹窗；2 弹窗+跳转")
    private Integer actionType;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "创建人id")
    private Long creatorId;

    @Schema(description = "扩展信息json")
    private String ext;

    @Schema(description = "跳转路径")
    private String linkUrl;

    @Schema(description = "消息类型：0 文本类型")
    private Integer messageType;

    @Schema(description = "通知类型：0 站内信")
    private Integer notifyType;

    @Schema(description = "是否已读：0 否；1 是")
    private Integer readFlag;

    @Schema(description = "关联id")
    private String thirdId;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "更新时间")
    private Date updateTime;

}
